add 3 0 1 //0: Perform various arithmetic
mlt 4 0 2
div 5 4 0
sub 6 4 5
rst
ldi 0 3   //5: Load registers with initial values
ldi 1 12
ldi 2 5
rst
st8 6 0   //9: Test memory
ldm 0 0
add 1 0 3
st8 1 1
rst
add 6 6 0 //E: Test loop
loop 4 E
rst
init      //Program init
jmps 5
jmps 0
jmps 9
jmps E
dbg 0
dbg 1
halt